﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class RolePrivilegeInfoConfig : EntityTypeConfiguration<RolePrivilegeInfo>
    {
        public RolePrivilegeInfoConfig()
        {
            ToTable("Himall_RolePrivileges");
         
            HasRequired(x => x.RoleInfo).WithMany(x => x.RolePrivilegeInfo).HasForeignKey(x => x.RoleId);
        }
    }
}
